package cn.itsource.romate.impl;

import cn.itsource.pojo.vo.RealPointVo;
import cn.itsource.result.R;
import cn.itsource.romate.api.PhoenixApi;
import cn.itsource.service.IDriverPointService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 📖：beishan
 * 🗓️：2024/4/17 10:27
 * =====================
 */
@RestController
public class PhoenixApiImpl implements PhoenixApi {
    @Autowired
    private IDriverPointService driverPointService;

    @Override
    public R<List<RealPointVo>> locationByOrderId(String orderId) {
        List<RealPointVo> realPointVos = driverPointService.locationByOrderId(orderId);
        return R.success(realPointVos);
    }
}
